package com.example.light.system.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@ApiModel(value = "权限树")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class permissionTree {

    @ApiModelProperty("权限id")
    @TableId(type = IdType.AUTO)
    private Integer permissionId;

    @ApiModelProperty("父级id")
    private Integer parentId;

    @ApiModelProperty("权限名称")
    private String permissionName;

    @ApiModelProperty("子路由")
    private ArrayList<permissionTree> childRouter;
}
